import java.util.Scanner;

public class Test08 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int num = 333;
        int temp = 0;
        while (temp != num){
            temp = sc.nextInt();
            if (temp == 0){
                break;
            } else if (temp < num) {
                System.out.println("小了");
            } else if (temp > num){
                System.out.println("大了");
            }else {
                System.out.println("对了");
                break;
            }
        }
    }
}
